import request from "../../request.js";

//获取教练列表信息
export const getTutorList = (params)=>{
	return request.get('/app/assistant/list',params)
}
//获取商家教练列表信息
export const getTutorListByMerchant = (params)=>{
	return request.get('/app/assistant/list/by/merchant',params)
} 
//获取教练详情
 export const getTutorDetails = (id)=>{
 	return request.get('/app/assistant/getAssistantVo',id)
 }
 //修改教练信息
 export const putTutorInfo = (id)=>{
 	return request.put('/app/assistant',id)
 }
 //删除教练
 export const delTutor = (id)=>{
 	return request.delete(`/app/assistant/${id}`)
 }
 //修改账号
 export const editTutorAccount = (params)=>{
 	return request.post('/app/assistant/update/account',params)
 }
 //获取当前登录教练信息
 export const getLoginTutorInfo = ()=>{
 	return request.get('/app/assistant/getLoginAssistant')
 }
 //修改教练列表
 export const editTutorAssistant = (params)=>{
	return request.put('/app/assistant',params)
}
 //获取教练可邀约时间
 export const getTutorTime = (id)=>{
 	return request.get(`/app/assistant/getTimeList/${id}`)
 }
 //教练入驻
 export const tutorAssistan = (params)=>{
 	return request.post('/app/assistant',params)
 }
 //查询教练某天订单日程信息
 export const getSchedule = (params)=>{
 	return request.get('/app/assistant/queryOrderSchedule', params)
 }
 //新增教练
 export const addTutor = (params)=>{
 	return request.post('/app/assistant/merchant/add', params)
 }
 //获取等级列表 
 export const getLevelList = ()=>{
	return request.get('/app/assistant/level/list')
}
 //根据教练等级查价格 
 export const getTutorlevelPrice = (levelId,categoryId)=>{
	return request.get(`/app/assistant/levelPrice/${levelId}/${categoryId}`)
}